﻿/**************************************************************
 *
 * 命名空间：Sgr.DataCategories.Application.Validations.AdministrativeDivisions
 * 创建时间：2025/3/19
 * 描述：删除行政区划命令验证器
 *
 **************************************************************/

using FluentValidation;
using Sgr.DataCategories.Application.Commands.AdministrativeDivisions;

namespace Sgr.DataCategories.Application.Validations.AdministrativeDivisions
{
    /// <summary>
    /// 删除行政区划命令验证器
    /// </summary>
    public class DeleteAdministrativeDivisionCommandValidator : AbstractValidator<DeleteAdministrativeDivisionCommand>
    {
        /// <summary>
        /// 构造函数
        /// </summary>
        public DeleteAdministrativeDivisionCommandValidator()
        {
            RuleFor(c => c.Id)
                .GreaterThan(0)
                .WithMessage("行政区划ID必须大于0");
        }
    }
}